<?php
session_start();

  if(!isset($_GET['controlador']))
  {
    if ( isset($_SESSION['username']) && isset($_SESSION['userid']) && $_SESSION['username'] != '' && $_SESSION['userid'] != '0' )
    {
      $user=$_SESSION['username'];
    }

    if(!$user) header("Location: index.php?controlador=login&accion=logearse");  
  }


?>
